package cn.unknowpupil.domain.system;

import cn.unknowpupil.common.mybatis.base.ParentEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;


/**
 * Created at 2020-11-06 by  w10g <br>
 * Initialize SysJobLog  ... <br>
 * 定时任务调度日志表
 *
 * @author unknowpupil
 * @since 0.0.1
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_job_log")
@ApiModel(value = "SysJobLog 域", description = "定时任务调度日志表")
public class SysJobLog extends ParentEntity<SysJobLog> {

    private static final long serialVersionUID = 1L;
    /**
     * 任务名称
     */
    @ApiModelProperty(value = "任务名称")
    @TableField(value = "job_name")
    private String jobName;
    /**
     * 任务组名
     */
    @ApiModelProperty(value = "任务组名")
    @TableField(value = "job_group")
    private String jobGroup;
    /**
     * 调用目标字符串
     */
    @ApiModelProperty(value = "调用目标字符串")
    @TableField(value = "invoke_target")
    private String invokeTarget;
    /**
     * 日志信息
     */
    @ApiModelProperty(value = "日志信息")
    @TableField(value = "job_message")
    private String jobMessage;
    /**
     * 异常信息
     */
    @ApiModelProperty(value = "异常信息")
    @TableField(value = "exception_info")
    private String exceptionInfo;


    /** 开始时间 */
    @JsonIgnore
    @TableField(exist = false)
    private String beginTime;

    /** 结束时间 */
    @JsonIgnore
    @TableField(exist = false)
    private String endTime;

    /**
     * 开始时间
     */
    @TableField(exist = false)
    private Date startTime;

    /**
     * 停止时间
     */
    @TableField(exist = false)
    private Date stopTime;
}